package com.zw.stock_sell_storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zw.stock_sell_storage.dto.RoleDto;
import com.zw.stock_sell_storage.dto.ex.RoleDtoEx;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色mapper
 */
@Mapper
public interface RoleMapper extends BaseMapper<RoleDto> {
    List<RoleDto> selectRoleByUserId(int userId);
    int insertRoleLinkPermission(@Param("roleDtoEx") RoleDtoEx roleDtoEx);
    int deleteRoleLinkPermission(int roleId);
}
